'use strict';

/**
 * Config for the router
 */
angular.module('app').run(['$rootScope', '$state', '$stateParams', function ($rootScope, $state, $stateParams) {
	$rootScope.$state = $state;
	$rootScope.$stateParams = $stateParams;
	if (loginUser && loginUser.id > 0) {
		$rootScope.loginUser = loginUser;
		$rootScope.$state.isLogin = true;
	} else {
		$rootScope.$state.isLogin = false;
	}
}]).config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
	$urlRouterProvider.otherwise('/access/signin/#');
	$stateProvider
		/*前台主页*/
		.state('access', {
			abstract: true,
			url: '/access',
			template: '<div ui-view></div>'

		})
		.state('access.signin', {
			url: '/signin/{from}',
			templateUrl: 'template/signin.html?v=cbf7bca8c2',
			resolve: {
				deps: ['uiLoad',
					function (uiLoad) {
						return uiLoad.load(['js/controllers/signin.js?v=7f4a9ec04c']);
					}
				]
			}
		})
		.state('access.forgotpwd', {
			url: '/forgotpwd',
			templateUrl: 'template/forgotpwd.html?v=5295f42dbf',
			resolve: {
				deps: ['uiLoad',
					function (uiLoad) {
						return uiLoad.load(['js/controllers/forgotpwd.js?v=c5a5827c9a']);
					}
				]
			}
		})
		/*重置密码*/
		.state('access.passwordReset', {
			url: '/passwordReset/{token}/{userId}',
			templateUrl: 'template/reset.html?v=ff75bfa4db',
			resolve: {
				deps: ['uiLoad',
					function (uiLoad) {
						return uiLoad.load(['js/controllers/passwordReset.js?v=8b13d8af33']);
					}
				]
			}
		})
		/*控制台*/
		.state('app', {
			abstract: true,
			url: '/app',
			templateUrl: 'template/app.html?v=404b486cd8',
			controllerProvider: function ($rootScope) {
				if (!$rootScope.$state.isLogin || $rootScope.$state.isLogin == false) {
					$rootScope.$state.go('access.signin');
				}
				return function () { };
			},
		})
		.state('app.dashboard-v1', {
			url: '/dashboard-v1',
			templateUrl: 'template/app_dashboard_v1.html?v=08fd6e31c7',
			resolve: {
				deps: ['uiLoad', '$ocLazyLoad',
					function (uiLoad, $ocLazyLoad) {
						return uiLoad.load([
							'js/md5.js?v=fe524364ed',
							'js/dashboard.js?v=2424ba715c'
						]).then(function () {
							return $ocLazyLoad.load('ui.select');
						});
					}
				]
			}
		})

		.state('app.public', {
			abstract: true,
			url: '/public',
			template: '<div ui-view class="fade-in-down"></div>'
		})

		//运营组织
		.state('app.public.organization', {
			url: '/organization',
			templateUrl: 'template/public/organization/list.html?v=955ccfc252',
			authority: ['RENT_ORGANIZATION', 'BUS_ORGANIZATION'],
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/public/organization/list.js?v=7f74a1995b',
									'js/biz/public/organization/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})

		//司机管理
		.state('app.public.driver', {
			url: '/driver',
			templateUrl: 'template/system/driver/list.html?v=3b93165bc3',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/system/driver/list.js?v=5e5bfa9347',
									'js/biz/system/driver/modal.js?v=e8cc3c5c31',
									'js/biz/system/driver/upload.js?v=924908585c',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//保险
		.state('app.public.insurance', {
			url: '/insurance',
			templateUrl: 'template/public/insurance/list.html?v=7c3de3594c',
			authority: ['BOOKING_INSURANCE', 'RENT_INSURANCE', 'BUS_INSURANCE'],
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/public/insurance/list.js?v=e719e2a0e1',
									'js/biz/public/insurance/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//保险配置
		.state('app.public.insuranceNav', {
			url: '/insuranceNav',
			templateUrl: 'template/public/insuranceNav/list.html?v=cf7e1e867c',
			authority: ['BOOKING_INSURANCE_NAV', 'RENT_INSURANCE_NAV', 'BUS_INSURANCE_NAV'],
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/public/insuranceNav/list.js?v=59e59dcbce',
									'js/biz/public/insuranceNav/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//评价
		.state('app.public.rating', {
			url: '/rating',
			templateUrl: 'template/public/rating/list.html?v=42b69afcbb',
			authority: ['BOOKING_RATING', 'RENT_RATING', 'BUS_RATING'],
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/public/rating/list.js?v=708048f81f'
								]);
							}
						);
					}]
			}
		})
		//投诉
		.state('app.public.complaint', {
			url: '/complaint',
			templateUrl: 'template/public/complaint/list.html?v=76cb5bf84c',
			authority: ['BOOKING_COPLAINT', 'RENT_COPLAINT', 'BUS_COPLAINT'],
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/public/complaint/list.js?v=6b54d10ef8'
								]);
							}
						);
					}]
			}
		})

		//投诉项
		.state('app.public.complaintIssue', {
			url: '/complaintIssue',
			templateUrl: 'template/public/complaintIssue/list.html?v=c64e54c8bd',
			authority: ['BOOKING_COPLAINT_ISSUE', 'RENT_COPLAINT_ISSUE', 'BUS_COPLAINT_ISSUE'],
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/public/complaintIssue/list.js?v=7a7d5345af',
									'js/biz/public/complaintIssue/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})

		//活动规则配置
		.state('app.public.salesRule', {
			url: '/salesRule',
			templateUrl: 'template/public/salesRule/list.html?v=43ca469eef',
			authority: ['BOOKING_SALE_RULE', 'RENT_SALE_RULE', 'BUS_SALE_RULE'],
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/public/salesRule/list.js?v=c21dfacfd8',
									'js/biz/public/salesRule/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//活动配置
		.state('app.public.sales', {
			url: '/sales',
			templateUrl: 'template/public/sales/list.html?v=05ce602485',
			authority: ['BOOKING_SALE', 'RENT_SALE', 'BUS_SALE'],
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/public/sales/list.js?v=f977f1ba33',
									'js/biz/public/sales/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})

		//优惠班次
		.state('app.public.addSaleShift', {
			url: '/addSaleShift/{saleId}/{subject}',
			templateUrl: 'template/public/sales/salesShift.html?v=efbde8b4fe',
			authority: 'BOOKING_SALE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/public/sales/salesShift.js?v=f51060cff9',
									'js/biz/public/sales/addSalesShift.js?v=572cdab8b7',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})


		//优惠线路
		.state('app.public.salesRoute', {
			url: '/salesRoute/{saleId}/{subject}',
			templateUrl: 'template/rent/salesRoute/list.html?v=3ff40ecaa1',
			authority: 'RENT_SALE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/salesRoute/list.js?v=7a57180b30',
									'js/biz/rent/salesRoute/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})

		//优惠班次档案
		.state('app.public.salesShiftTpl', {
			url: '/salesShiftTpl/{saleId}/{subject}',
			templateUrl: 'template/bus/salesShiftTemplate/salesShiftTpl.html?v=be56200a41',
			authority: 'BUS_SALE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/salesShiftTemplate/salesShiftTpl.js?v=4daa2fdedf',
									'js/biz/bus/salesShiftTemplate/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})


		.state('app.system', {
			abstract: true,
			url: '/system',
			template: '<div ui-view class="fade-in-down"></div>'
		})
		//工作人员管理
		.state('app.system.staff', {
			url: '/staff',
			templateUrl: 'template/system/staff/list.html?v=ee1251774e',
			authority: 'SYSTEM_STAFF',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/system/staff/list.js?v=0d3cec42c4',
									'js/biz/system/staff/modal.js?v=e8cc3c5c31',
									'js/biz/system/staff/userRole.js?v=04468d9ba3',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//登录日志
		.state('app.system.loginlog', {
			url: '/loginlog',
			templateUrl: 'template/system/loginlog/list.html?v=14fb03c158',
			authority: 'SYSTEM_LOGINLOG',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/system/loginlog/loginlog.js?v=609fe621a3'
								]);
							}
						);
					}]
			}
		})
		//操作日志
		.state('app.system.opslog', {
			url: '/opslog',
			templateUrl: 'template/system/opslog/list.html?v=9ab6ef026b',
			authority: 'SYSTEM_OPSLOG',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/system/opslog/opslog.js?v=9703a19fb1'
								]);
							}
						);
					}]
			}
		})
		//广告配置
		.state('app.system.ads', {
			url: '/ads',
			templateUrl: 'template/system/ads/list.html?v=596b585634',
			authority: 'SYSTEM_ADS',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/system/ads/list.js?v=6386152640',
									'js/biz/system/ads/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//订票接口配置
		.state('app.system.api', {
			url: '/api',
			templateUrl: 'template/system/api/list.html?v=b0860db0f1',
			authority: 'SYSTEM_API',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/system/api/list.js?v=08d8466e72',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//系统公告
		.state('app.system.notify', {
			url: '/notify',
			templateUrl: 'template/system/notify/list.html?v=fa0192b5e7',
			authority: 'SYSTEM_NOTIFY',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/system/notify/list.js?v=f94f8af547'
								]);
							}
						);
					}]
			}
		})
		.state('app.system.recipient', {
			url: '/recipient/{type}',
			templateUrl: 'template/system/notify/recipient.html?v=82296a83c1',
			authority: 'SYSTEM_NOTIFY',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/system/notify/recipient.js?v=a3f575ee0d',
									'js/biz/system/notify/send.js?v=3c0f9aab4e'
								]);
							}
						);
					}]
			}
		})
		//通知项配置
		.state('app.system.notifyItem', {
			url: '/notifyItem',
			templateUrl: 'template/system/notifyItem/list.html?v=a59ea9ef97',
			authority: 'SYSTEM_NOTIFY_ITEM',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/system/notifyItem/list.js?v=e2ecbc7142',
									'js/biz/system/notifyItem/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//角色管理
		.state('app.system.role', {
			url: '/role',
			templateUrl: 'template/system/role/list.html?v=650a5784f6',
			authority: 'SYSTEM_ROLE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/system/role/list.js?v=ae128232ae',
									'js/biz/system/role/modal.js?v=e8cc3c5c31',
									'js/biz/system/role/roleAuthority.js?v=9bfafa6e40',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//系统配置
		.state('app.system.config', {
			url: '/config',
			templateUrl: 'template/system/config/list.html?v=f9216ecf81',
			authority: 'SYSTEM_CONFIG',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/system/config/list.js?v=85a0be68a8'
								]);
							}
						);
					}]
			}
		})
		.state('app.booking', {
			abstract: true,
			url: '/booking',
			template: '<div ui-view class="fade-in-down"></div>'
		})

		//代售点管理
		.state('app.booking.agency', {
			url: '/agency',
			templateUrl: 'template/booking/agency/list.html?v=92de6b0c04',
			authority: 'BOOKING_AGENCY',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/booking/agency/list.js?v=88c9145a50',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//对账
		.state('app.booking.account', {
			url: '/account',
			templateUrl: 'template/booking/account/account.html?v=83386eb329',
			authority: 'BOOKING_ACCOUNT',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/booking/account/account.js?v=4c571a6470',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//支付管理
		.state('app.booking.payment', {
			url: '/payment',
			templateUrl: 'template/booking/payment/list.html?v=59638232d7',
			authority: 'BOOKING_PAYMENT',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/booking/payment/list.js?v=2dd5680d92'
								]);
							}
						);
					}]
			}
		})
		//订票
		.state('app.booking.order', {
			url: '/order',
			templateUrl: 'template/booking/order/list.html?v=ee2f6857a7',
			authority: 'BOOKING_LIST',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/booking/order/list.js?v=6e86d81075',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		.state('app.booking.detail', {
			url: '/detail/{orderId}/{status}/{tag}/{id}',
			templateUrl: 'template/booking/order/detail.html?v=a9eb027211',
			authority: 'BOOKING_LIST',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/booking/order/detail.js?v=344ad0c2e1',
									'js/biz/booking/order/module.js?v=7566393e31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//起点站点管理
		.state('app.booking.start', {
			url: '/start',
			templateUrl: 'template/booking/start/list.html?v=7992b49987',
			authority: 'BOOKING_START',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/booking/start/list.js?v=688837fd30',
									'js/biz/booking/start/modal.js?v=e8cc3c5c31',
									'js/biz/booking/start/popular.js?v=4ca69ac4bc',
									'js/biz/booking/start/qrcode.js?v=c248e4b300',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		.state('app.booking.qrcode', {
			url: '/qrcode/{startId}',
			templateUrl: 'template/booking/start/qrcodelist.html?v=285dc62b3e',
			authority: 'BOOKING_START_QR_LIST',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/booking/start/qrcodelist.js?v=957ca6f9a9',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//会员管理
		.state('app.system.passenger', {
			url: '/passenger',
			templateUrl: 'template/booking/passenger/list.html?v=878e0a5d3f',
			authority: 'SYSTEM_PASSENGER',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/booking/passenger/list.js?v=31f4927587',
									'js/biz/booking/passenger/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		.state('app.system.contact', {
			url: '/contact/{passengerId}/',
			templateUrl: 'template/booking/passenger/detail.html?v=755f004d1c',
			authority: 'SYSTEM_PASSENGER_CONTACT',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/booking/passenger/detail.js?v=ff9015292b',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		.state('app.system.points', {
			url: '/points/{passengerId}/',
			templateUrl: 'template/booking/passenger/orderDetail.html?v=64db898951',
			authority: 'SYSTEM_PASSENGER',
			resolve: {
				deps: ['uiLoad',
					function (uiLoad) {
						return uiLoad.load(['js/biz/booking/passenger/orderDetail.js?v=a4810f46fc']);
					}
				]
			}
		})
		.state('app.system.ref', {
			url: '/ref/{passengerId}/',
			templateUrl: 'template/booking/passenger/refurnList.html?v=e203bbd043',
			authority: 'BOOKING_RETURN',
			resolve: {
				deps: ['uiLoad',
					function (uiLoad) {
						return uiLoad.load(['js/biz/booking/passenger/refurnList.js?v=7ac104a7f8']);
					}
				]
			}
		})
		.state('app.system.all', {
			url: '/all/{passengerId}/',
			templateUrl: 'template/booking/passenger/all.html?v=002e011934',
			authority: 'BOOKING_LIST',
			resolve: {
				deps: ['uiLoad',
					function (uiLoad) {
						return uiLoad.load(['js/biz/booking/passenger/all.js?v=04ec0aa53d']);
					}
				]
			}
		})
		//终点站点管理
		.state('app.booking.terminal', {
			url: '/terminal',
			templateUrl: 'template/booking/terminal/list.html?v=6a17358cdf',
			authority: 'BOOKING_TERMINAL',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/booking/terminal/list.js?v=a096ca019e'
								]);
							}
						);
					}]
			}
		})
		//班次管理
		.state('app.booking.shift', {
			url: '/shift',
			templateUrl: 'template/booking/shift/list.html?v=6592068005',
			authority: 'BOOKING_SHIFT',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/booking/shift/list.js?v=492b74a58d'
								]);
							}
						);
					}]
			}
		})
		//退票
		.state('app.booking.return', {
			url: '/return',
			templateUrl: 'template/booking/return/list.html?v=d7022c12f2',
			authority: 'BOOKING_RETURN',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/booking/return/list.js?v=8ed067b28d',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		.state('app.booking.returnDetail', {
			url: '/detail/{returnId}',
			templateUrl: 'template/booking/return/detail.html?v=4f400f4a1f',
			authority: 'BOOKING_RETURN',
			resolve: {
				deps: ['uiLoad',
					function (uiLoad) {
						return uiLoad.load([
							'js/biz/booking/return/detail.js?v=09e2ec2f03'
						]);
					}
				]
			}
		})
		//订票配置
		.state('app.booking.module', {
			url: '/module',
			templateUrl: 'template/booking/module/list.html?v=c2a3a85b56',
			authority: 'BOOKING_MODULE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select', 'textAngular']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/booking/module/list.js?v=6fbfb3f95f'
								]);
							}
						);
					}]
			}
		})

		.state('app.rent', {
			abstract: true,
			url: '/rent',
			template: '<div ui-view class="fade-in-down"></div>'
		})

		//运营组织
		.state('app.rent.organization', {
			url: '/organization',
			templateUrl: 'template/rent/organization/list.html',
			authority: 'RENT_ORGANIZATION',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/organization/list.js?v=035d81c05c',
									'js/biz/rent/organization/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//车辆档案
		.state('app.rent.vehicle', {
			url: '/vehicle',
			templateUrl: 'template/rent/vehicle/list.html?v=af68808975',
			authority: 'RENT_VEHICLE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/vehicle/list.js?v=e076a05436',
									'js/biz/rent/vehicle/modal.js?v=e8cc3c5c31',
									'js/biz/rent/vehicle/addInsurance.js?v=ee9e7bfffe',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		.state('app.rent.vehicleDetail', {
			url: '/detail/{vehicleId}/',
			templateUrl: 'template/rent/vehicle/detail.html?v=0835a52d9b',
			authority: 'RENT_VEHICLE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/vehicle/detail.js?v=3acad8338b'
								]);
							}
						);
					}]
			}
		})
		//城市管理
		.state('app.rent.city', {
			url: '/city',
			templateUrl: 'template/rent/city/list.html?v=51ace3df5b',
			authority: 'RENT_CITY',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select', 'han.map']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/city/list.js?v=992c63f31f',
									'js/biz/rent/city/modal.js?v=e8cc3c5c31',
									'js/biz/rent/city/popular.js?v=e95bf7860d',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		.state('app.rent.area', {
			url: '/area/{city}/{name}',
			templateUrl: 'template/rent/city/serviceArea.html?v=21c9e5157c',
			authority: 'RENT_CITY',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select', 'han.map']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/city/serviceArea.js?v=dbbcd7010e',
									'js/biz/rent/city/addArea.js?v=bb5426299b'
								]);
							}
						);
					}]
			}
		})
		.state('app.rent.arealist', {
			url: '/arealist/{city}/{name}',
			templateUrl: 'template/rent/city/areaList.html?v=f9db456e47',
			authority: 'RENT_CITY',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select', 'han.map']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/city/areaList.js?v=4b78db62bf',
									'js/biz/rent/city/areaUpdate.js?v=f8f6012700',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		.state('app.rent.locationAll', {
			url: '/locationAll/{city}/{name}',
			templateUrl: 'template/rent/city/locationAll.html?v=1956790ad1',
			authority: 'RENT_CITY',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select', 'han.map']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/city/locationAll.js?v=272dc816a6',
								]);
							}
						);
					}]
			}
		})
		//定价模版
		.state('app.rent.price', {
			url: '/price',
			templateUrl: 'template/rent/price/list.html?v=59860f7e0c',
			authority: 'RENT_PRICE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/price/list.js?v=0c000a5390',
									'js/biz/rent/price/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//线路模版
		.state('app.rent.route', {
			url: '/route',
			templateUrl: 'template/rent/route/list.html?v=9c3be1ffd2',
			authority: 'RENT_ROUTE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/route/list.js?v=c3a5f2cd61',
									'js/biz/rent/route/modal.js?v=e8cc3c5c31',
									'js/biz/rent/city/modal.js?v=e8cc3c5c31',
									'js/biz/rent/price/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//推荐地点
		.state('app.rent.location', {
			url: '/location',
			templateUrl: 'template/rent/location/list.html?v=6614a0f160',
			authority: 'RENT_LOCATION',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select', 'han.map']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/location/list.js?v=aa6f61c67b',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		.state('app.rent.maplocation', {
			url: '/maplocation',
			templateUrl: 'template/rent/location/map.html?v=ba26e833be',
			authority: 'RENT_LOCATION',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select', 'han.map']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/location/map.js?v=3e9c6c172f',
									'js/biz/rent/location/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})

		//服务时段
		.state('app.rent.duration', {
			url: '/duration',
			templateUrl: 'template/rent/duration/list.html?v=32cd600ff8',
			authority: 'RENT_DURATION',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/duration/list.js?v=d8f3a9c184',
									'js/biz/rent/duration/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//发班计划
		.state('app.rent.shift', {
			url: '/shift',
			templateUrl: 'template/rent/shift/list.html?v=766adb97c2',
			authority: 'RENT_SHIFT',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/shift/list.js?v=7c1092cfd5',
									'js/biz/rent/shift/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//模块配置
		.state('app.rent.module', {
			url: '/module',
			templateUrl: 'template/rent/module/list.html?v=d4ead537be',
			authority: 'RENT_MODULE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/module/list.js?v=6b1e2de4c5'
								]);
							}
						);
					}]
			}
		})
		//约租订票
		.state('app.rent.order', {
			url: '/order',
			templateUrl: 'template/rent/order/list.html?v=0f2a12585c',
			authority: 'RENT_ORDER',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/order/list.js?v=70f3186af8',
									'js/modal.js?v=e8cc3c5c31'

								]);
							}
						);
					}]
			}
		})
		.state('app.rent.detail', {
			url: '/order/detail/{orderId}/{status}/{tag}',
			templateUrl: 'template/rent/order/detail.html?v=7725fc312d',
			authority: 'RENT_ORDER',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/order/detail.js?v=9ca932d61b',
									'js/biz/rent/order/module.js?v=4d4ee05c85'
								]);
							}
						);
					}]
			}
		})

		//约租支付
		.state('app.rent.payment', {
			url: '/payment',
			templateUrl: 'template/rent/payment/list.html?v=781c0c682a',
			authority: 'RENT_PAYMENT',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/payment/list.js?v=feceb9482f'
								]);
							}
						);
					}]
			}
		})
		//约租退票
		.state('app.rent.return', {
			url: '/return',
			templateUrl: 'template/rent/return/list.html?v=191a5c4298',
			authority: 'RENT_RETURN',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/return/list.js?v=fdfc304738',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		.state('app.rent.returnDetail', {
			url: '/return/detail/{returnId}',
			templateUrl: 'template/rent/return/detail.html?v=6eaa409714',
			authority: 'RENT_RETURN',
			resolve: {
				deps: ['uiLoad',
					function (uiLoad) {
						return uiLoad.load(['js/biz/rent/return/detail.js?v=6555a11973']);
					}
				]
			}
		})

		//任务管理
		.state('app.rent.task', {
			url: '/task',
			templateUrl: 'template/rent/task/list.html?v=78fcebc5e1',
			authority: 'RENT_TASK',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/task/list.js?v=f8f1e88354',
									'js/biz/rent/task/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		.state('app.rent.taskDetail', {
			url: '/task/detail/{taskId}/{tag}',
			templateUrl: 'template/rent/task/detail.html?v=b71589159a',
			authority: 'RENT_TASK',
			resolve: {
				deps: ['uiLoad',
					function (uiLoad) {
						return uiLoad.load(['js/biz/rent/task/detail.js?v=2b8612bb9b']);
					}
				]
			}
		})
		//资源分配
		.state('app.rent.restask', {
			url: '/restask',
			templateUrl: 'template/rent/resource/list.html?v=e5a1a72bc8',
			authority: 'RENT_RESOURCE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/resource/list.js?v=94952fdd0e',
									'js/biz/rent/resource/modal.js?v=e8cc3c5c31',
								]);
							}
						);
					}]
			}
		})
		.state('app.user', {
			abstract: true,
			url: '/user',
			template: '<div ui-view class="fade-in-down"></div>'
		})
		//消息列表
		.state('app.user.notifies', {
			url: '/notify',
			templateUrl: 'template/user/notifylist.html?v=e2352ac4a7',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/user/notifylist.js?v=492318aed3',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}
				]
			}
		})
		.state("app.rent.tickets", {
			url: '/tickets',
			templateUrl: 'template/rent/tickets/list.html?v=a70d993586',
			authority: 'RENT_TICKETS',
			resolve: {
				deps: ['$ocLazyLoad', function ($ocLazyLoad) {
					return $ocLazyLoad.load(['ui.select']).then(
						function () {
							return $ocLazyLoad.load(['js/biz/rent/tickets/list.js?v=044d62f005']);
						}
					);
				}]
			}
		})
		.state("app.rent.resource", {
			url: '/resource',
			params: { group: null },
			templateUrl: 'template/rent/tickets/resList.html?v=c2ea135eb0',
			authority: 'RENT_TICKETS_RESOURCE',
			resolve: {
				deps: ['$ocLazyLoad', function ($ocLazyLoad) {
					return $ocLazyLoad.load(['ui.select']).then(
						function () {
							return $ocLazyLoad.load([
								'js/biz/rent/tickets/resList.js?v=6acc88b6df',
								'js/biz/rent/tickets/modal.js?v=e8cc3c5c31',
								'js/modal.js?v=e8cc3c5c31'
							]);
						}
					);
				}]
			}
		})
		//对账
		.state('app.rent.account', {
			url: '/account',
			templateUrl: 'template/rent/account/account.html?v=9fb9b70aa6',
			authority: 'RENT_ACCOUNT',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/rent/account/account.js?v=685a9c7c49',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})

		//跨城巴士
		.state('app.bus', {
			abstract: true,
			url: '/bus',
			template: '<div ui-view class="fade-in-down"></div>'
		})

		//跨城巴士车辆档案
		.state('app.bus.vehicle', {
			url: '/vehicle',
			templateUrl: 'template/bus/vehicle/list.html?v=7b05c9c644',
			authority: 'BUS_VEHICLE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/vehicle/list.js?v=ba5201bb17',
									'js/biz/bus/vehicle/modal.js?v=e8cc3c5c31',
									'js/biz/bus/vehicle/addInsurance.js?v=0ffc259b28',
									'js/biz/bus/vehicle/addVehicleModel.js?v=5d8a6395b2',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		.state('app.bus.vehicleDetail', {
			url: '/detail/{vehicleId}',
			templateUrl: 'template/bus/vehicle/detail.html?v=32201d5c4e',
			authority: 'BUS_VEHICLE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/vehicle/detail.js?v=08c6457e86'
								]);
							}
						);
					}]
			}
		})
		.state('app.bus.vehicleModel', {
			url: '/vehicleModel',
			templateUrl: 'template/bus/vehicle/vehicleModel.html?v=7eccff21f0',
			authority: 'BUS_VEHICLE_MODEL',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/vehicle/vehicleModel.js?v=388c06b71f',
									'js/biz/bus/vehicle/addVehicleModel.js?v=5d8a6395b2',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})

		//城市管理
		.state('app.bus.city', {
			url: '/city',
			templateUrl: 'template/bus/city/list.html?v=ab5155895a',
			authority: 'BUS_CITY',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/city/list.js?v=c533f3b3de',
									'js/biz/bus/city/modal.js?v=e8cc3c5c31',
									'js/biz/bus/city/popular.js?v=0f977f5b69',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})

		//巴士站点档案
		.state('app.bus.station', {
			url: '/station',
			templateUrl: 'template/bus/station/list.html?v=2e0a00d8e8',
			authority: 'BUS_STATION',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/station/list.js?v=3a202e3daf',
									'js/biz/bus/station/update.js?v=bfa95b5878',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		.state('app.bus.mapStation', {
			url: '/maplocation',
			templateUrl: 'template/bus/station/map.html?v=b5ce52ca84',
			authority: 'BUS_STATION_UPDATE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select', 'han.map']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/station/map.js?v=e05974cca6',
									'js/biz/bus/station/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})

		//巴士线路
		.state('app.bus.route', {
			url: '/route',
			templateUrl: 'template/bus/route/list.html?v=8d87ac3721',
			authority: 'BUS_ROUTE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/route/list.js?v=2452005601',
									'js/biz/bus/route/modal.js?v=e8cc3c5c31',
									'js/biz/bus/route/addSort.js?v=bdc7a749ea',
									'js/biz/bus/route/sort.js?v=99b3b3a82b',
									'js/biz/bus/route/syncShift.js?v=a8d71712e0',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})

		//巴士支付
		.state('app.bus.payment', {
			url: '/payment',
			templateUrl: 'template/bus/payment/list.html?v=b34cdefecf',
			authority: 'BUS_PAYMENT',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/payment/list.js?v=e6f4bff60d'
								]);
							}
						);
					}]
			}
		})
		//巴士退票
		.state('app.bus.return', {
			url: '/return',
			templateUrl: 'template/bus/return/list.html?v=cb4dcd949c',
			authority: 'BUS_RETURN',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/return/list.js?v=1d8225e447',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})

		.state('app.bus.returnDetail', {
			url: '/return/detail/{returnId}',
			templateUrl: 'template/bus/return/detail.html?v=0dbafa574e',
			authority: 'BUS_RETURN',
			resolve: {
				deps: ['uiLoad',
					function (uiLoad) {
						return uiLoad.load(['js/biz/bus/return/detail.js?v=3a53ec89ea']);
					}
				]
			}
		})
		//巴士班次计划
		.state('app.bus.shift', {
			url: '/shift',
			templateUrl: 'template/bus/shift/list.html?v=4345f20a6b',
			authority: 'BUS_SHIFT',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/shift/list.js?v=d3f09c6c7f',
									'js/biz/bus/shift/modal.js?v=e8cc3c5c31',
									'js/biz/bus/shift/price.js?v=2a4046cdfe',
									'js/biz/bus/shift/updateStation.js?v=d6f04a561a',
									'js/biz/bus/shift/updatePrice.js?v=fc24dc27bc',
									'js/biz/bus/shift/paused.js?v=6909bf79ed',
									'js/biz/bus/shift/delayedShift.js?v=3bc83114a6',
									'js/biz/bus/shift/copyShift.js?v=88915ce3aa',
									'js/modal.js?v=e8cc3c5c31'

								]);
							}
						);
					}]
			}
		})
		.state('app.bus.shiftDetail', {
			url: '/shift/detail/{shiftId}',
			templateUrl: 'template/bus/shift/detail.html?v=7b4032e908',
			authority: 'BUS_SHIFT',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/shift/detail.js?v=4817489df1'
								]);
							}
						);
					}]
			}
		})
		.state('app.bus.shiftTicket', {
			url: '/shift/ticket/{shiftId}',
			templateUrl: 'template/bus/shift/ticket.html?v=a1eb3eaa1c',
			authority: 'BUS_SHIFT',
			resolve: {
				deps: ['$ocLazyLoad', function ($ocLazyLoad) {
					return $ocLazyLoad.load([
						'js/biz/bus/shift/ticket.js?v=3e36eded25',
						'js/modal.js?v=e8cc3c5c31'
					]);
				}]
			}
		})

		//巴士班次档案
		.state('app.bus.shiftTemplate', {
			url: '/shiftTemplate',
			templateUrl: 'template/bus/shiftTemplate/list.html?v=5772b5fbde',
			authority: 'BUS_SHIFT_TEMPLATE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/shiftTemplate/list.js?v=77883e4120',
									'js/biz/bus/shiftTemplate/modal.js?v=e8cc3c5c31',
									'js/biz/bus/shiftTemplate/updateShift.js?v=3ed2907b9e',
									'js/biz/bus/shiftTemplate/updateStation.js?v=d2bd79b980',
									'js/biz/bus/shiftTemplate/import.js?v=8a1d9825bf',
									'js/biz/bus/priceSchedule/modal.js?v=e8cc3c5c31',
									'js/biz/bus/shiftTemplate/dateList.js?v=cca5f2c110',
									'js/biz/bus/price/modal.js?v=e8cc3c5c31',
									'js/biz/bus/shiftTemplate/attachShift.js?v=b7917cc0ff',
									'js/biz/bus/shiftTemplate/attachShiftList.js?v=655e98eef6',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//巴士班次档案价格计划
		.state('app.bus.priceSchedule', {
			url: '/priceSchedule/{tplId}/{routeId}',
			templateUrl: 'template/bus/priceSchedule/list.html?v=cf7e491010',
			authority: 'BUS_SHIFT_TEMPLATE_SCHEDULE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/priceSchedule/list.js?v=3e4bb5c95c',
									'js/biz/bus/priceSchedule/modal.js?v=e8cc3c5c31',
									'js/biz/bus/priceSchedule/syncShift.js',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		.state('app.bus.arrangeShift', {
			url: '/arrangeShift',
			templateUrl: 'template/bus/shiftTemplate/arrangeShift.html?v=d0c2e382ea',
			resolve: {
				deps: ['$ocLazyLoad',
					($ocLazyLoad) => $ocLazyLoad.load(['ui.select', 'ngGrid']).then(
						() => $ocLazyLoad.load([
							'js/biz/bus/shiftTemplate/arrangeShift.js?v=fbfdb44bc1',
							'js/biz/bus/shiftTemplate/insertModal.js?v=eb06edbe99',
							'js/biz/bus/shiftTemplate/resultList.js?v=dd67e30a75'
						])
					)
				]
			}
		})
		//车辆关联班次
		.state('app.bus.vehiclesShiftList', {
			url: '/vehiclesShiftList/{tplId}',
			templateUrl: 'template/bus/vehicleShift/list.html?v=02a077bdc0',
			authority: 'BUS_SHIFT_TEMPLATE_VEHICLE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/vehicleShift/list.js?v=a62fbcfc62',
									'js/biz/bus/vehicleShift/modal.js?v=e8cc3c5c31',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		//跨城巴士订票
		.state('app.bus.order', {
			url: '/order',
			templateUrl: 'template/bus/order/list.html?v=be74ae5bd6',
			authority: 'BUS_ORDER',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/order/list.js?v=e59f7e5f48',
									'js/modal.js?v=e8cc3c5c31'

								]);
							}
						);
					}]
			}
		})
		.state('app.bus.detail', {
			url: '/order/detail/{orderId}/{status}/{tag}',
			templateUrl: 'template/bus/order/detail.html?v=646110d76d',
			authority: 'BUS_ORDER',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/order/detail.js?v=f3278f8860',
									'js/biz/bus/order/module.js?v=f31838413a',
									'js/biz/bus/order/qrcode.js?v=2436bbcbfd'
								]);
							}
						);
					}]
			}
		})

		//跨城巴士任务管理
		.state('app.bus.task', {
			url: '/task',
			templateUrl: 'template/bus/task/list.html?v=6a3fa5924c',
			authority: 'BUS_TASK',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/task/list.js?v=443ddafc36',
									'js/biz/bus/task/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})
		.state('app.bus.taskDetail', {
			url: '/task/detail/{taskId}',
			templateUrl: 'template/bus/task/detail.html?v=87f8ceaa21',
			authority: 'BUS_TASK',
			resolve: {
				deps: ['uiLoad',
					function (uiLoad) {
						return uiLoad.load(['js/biz/bus/task/detail.js?v=58ebd94912']);
					}
				]
			}
		})

		//模块配置
		.state('app.bus.module', {
			url: '/module',
			templateUrl: 'template/bus/module/list.html?v=8f88688ffd',
			authority: 'BUS_MODULE',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/module/list.js?v=384aedad91'
								]);
							}
						);
					}]
			}
		})
		//对账
		.state('app.bus.account', {
			url: '/account',
			templateUrl: 'template/bus/account/account.html?v=11b55cd1da',
			authority: 'BUS_ACCOUNT',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/bus/account/account.js?v=aac7874823',
									'js/modal.js?v=e8cc3c5c31'
								]);
							}
						);
					}]
			}
		})


		.state('app.agency', {
			abstract: true,
			url: '/agency',
			template: '<div ui-view class="fade-in-down"></div>'
		})
		//代售点乘客管理
		.state('app.agency.passenger', {
			url: '/passenger',
			templateUrl: 'template/booking/agencyPassenger/list.html?v=7875a6d814',
			authority: 'AGENCY_PASSENGER',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/booking/agencyPassenger/list.js?v=7e07fcdf09',
								]);
							}
						);
					}]
			}
		})
		//代售点业务管理
		.state('app.agency.statics', {
			url: '/statics',
			templateUrl: 'template/booking/agencyOrder/list.html?v=2b4f7708d6',
			authority: 'AGENCY_STATICS',
			resolve: {
				deps: ['$ocLazyLoad',
					function ($ocLazyLoad) {
						return $ocLazyLoad.load(['ui.select']).then(
							function () {
								return $ocLazyLoad.load([
									'js/biz/booking/agencyOrder/list.js?v=381b72fcf9',
								]);
							}
						);
					}]
			}
		})

		;
}]);
